#!/bin/sh

# 启动drools-wb
# M2_HOME=设置maven home
docker run -p 8080:8080 -p 8001:8001 -d --name drools-wb \
  -v /data/docker_file/drools-wb/maven_respository:/opt/jboss/wildfly/bin/repositories/kie/global \
  -v /data/docker_file/drools-wb/git_respository:/opt/jboss/wildfly/bin/.niogit:Z \
  registry.cn-hangzhou.aliyuncs.com/devops-t/business-central-workbench-showcase:7.34.0.Final

# 这里启动两个 kie-server
# M2_HOME=设置maven home
# KIE_SERVER_ID kie-server

# KIE_SERVER_LOCATION=http://10.139.60.81:8280/kie-server/services/rest/server

# KIE_SERVER_CONTROLLER http://localhost:8080/business-central/rest/controller
docker run -p 8180:8080 -d -e KIE_SERVER_ID=kie-server1 --name kie-server1 --link drools-wb:kie_wb \
  registry.cn-hangzhou.aliyuncs.com/devops-t/kie-server-showcase:7.34.0.Final
docker run -p 8280:8080 -d -e KIE_SERVER_ID=kie-server2 --name kie-server2 --link drools-wb:kie_wb \
  registry.cn-hangzhou.aliyuncs.com/devops-t/kie-server-showcase:7.34.0.Final


docker run -p 8180:8080 \
  -e KIE_SERVER_ID=kie-server1 \
  -e KIE_SERVER_CONTROLLER=http://10.139.60.81:8080/business-central/rest/controller \
  -e KIE_SERVER_LOCATION=http://10.139.60.81:8180/kie-server/services/rest/server \
  -e KIE_MAVEN_REPO=http://10.139.60.83:8081/repository/maven-public \
  --name kie-server1 \
  registry.cn-hangzhou.aliyuncs.com/devops-t/kie-server-showcase:7.34.0.Final

